﻿using System.Data.Entity;
using System.Linq;

namespace CodeContribBlog.Data
{
	public static class UserExtensions
	{
		public static User FindByEmailAddress(this IDbSet<User> users, string emailAddress)
		{
			return users.FirstOrDefault(u => u.EmailAddress == emailAddress);
		}
	}
}